projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d607312
)
widget: Initialize a local variable
author
Timm Bäder
<mail@baedert.org>
Thu, 18 Jan 2018 13:42:39 +0000
(14:42 +0100)
committer
Timm Bäder
<mail@baedert.org>
Thu, 18 Jan 2018 13:45:13 +0000
(14:45 +0100)
We will later pass this variable on to some other functions, so be safe
against them using the value.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 2f1219925a280a8ef32b1e9efa884542d2de096f..46ad98022db521f06b47bde66677008c77fc1e0f 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-4513,7
+4513,7
@@
gtk_widget_size_allocate (GtkWidget *widget,
gboolean size_changed;
gboolean baseline_changed;
gboolean position_changed;
- gint natural_width, natural_height, dummy;
+ gint natural_width, natural_height, dummy
= 0
;
gint min_width, min_height;
GtkCssStyle *style;
GtkBorder margin, border, padding;